
$.extend($.fn.validatebox.defaults.rules,{
	number : {
		validator : function(value,param){
			return /^\d+$/gi.test(value);
		},
		message :"只能使用纯数字"
	}
});
$(function(){
	$("#trigger").on("click",function(){
		alert($("username").textbox("getValue"));
	});
});
$('#dg').dategrid({
	url:"JSONServlet",
	columns:[[
		{filed:'code',title:'Code',width:100},
		{filed:'name',title:'Name',width:100},
		{filed:'address',title:'Address',width:100,align:'right'}
	]]
		
});